package com.nlelpct.system.controller;

import com.nlelpct.system.model.query.AuthenticationLogQueryVo;
import com.nlelpct.system.service.impl.EsAuthenticationLogService;
import com.nlelpct.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 刘伟涛
 * @Date 2023/10/27 9:05
 **/
@RestController
@RequestMapping("esAuthenticationLog")
public class EsAuthenticationLogController {

    @Autowired
    EsAuthenticationLogService esAuthenticationLogService;

    @PostMapping("/authentication/getAuthenticationLogByPage")
    public Result getAuthenticationLogByPage(@RequestBody AuthenticationLogQueryVo queryVo){
        return esAuthenticationLogService.getAuthenticationLogByPage(queryVo);
    }

    @GetMapping("/authentication/getOptLogById/{id}")
    public Result getOptLogById(@PathVariable("id") String id){
        return esAuthenticationLogService.getOptLogById(id);
    }

    @GetMapping("/authentication/getAuthenticationOperationType")
    public Result getAuthenticationOperationType(){
        return esAuthenticationLogService.getAuthenticationOperationType();
    }

}
